You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell, there is no easy way in grcov to exclude all code that is included in #[cfg(test)] from test coverage. You can use ---excl-start, but there is no way to tell where the #[cfg(test)] block ends.
It would be good if there was some token-tree based mechanism for this.
I can try to implement a PR if this is desired.
The text was updated successfully, but these errors were encountered:
Another possibility would be to have an option that takes a list of lines to ignore per file, which can be computed in a smart way by an external process. Maybe it's smarter to filter the .gcno file.
Uh oh!
There was an error while loading. Please reload this page.
As far as I can tell, there is no easy way in
grcov
to exclude all code that is included in#[cfg(test)]
from test coverage. You can use---excl-start
, but there is no way to tell where the#[cfg(test)]
block ends.It would be good if there was some token-tree based mechanism for this.
I can try to implement a PR if this is desired.
The text was updated successfully, but these errors were encountered: